package org.example.elm_xiangmu.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.elm_xiangmu.po.Food;

import java.util.List;

@Mapper
public interface FoodMapper {
    @Select("select * from food where businessId = #{businessId}")
    List<Food> list(Integer businessId);

    @Select("select * from food where foodId = #{foodId}")
    Food getByFoodId(Integer foodId);



}
